﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBLGen.QueryBuilder.Enums;

namespace DBLGen.QueryBuilder.Clauses
{
	/// <summary>
	/// Represents a ORDER BY clause to be used with SELECT statements
	/// </summary>
	public struct OrderByClause
	{
		public string FieldName;
		public Sorting SortOrder;
		public OrderByClause(string field)
		{
			FieldName = field;
			SortOrder = Sorting.Ascending;
		}
		public OrderByClause(string field, Sorting order)
		{
			FieldName = field;
			SortOrder = order;
		}
	}
}
